import React from 'react'
import logo from '../assets/logo.png'
import { useNavigate } from 'react-router-dom'

function Navigator() {
  const navigate = useNavigate()
  return (
    <div className="topNav">
      <img src={logo} alt="" />
      <div className="navItem on">
        <a
          href="javascript:viod(0);"
          onClick={() => {
            navigate('/home')
          }}
        >
          充值
        </a>
      </div>
      <div className="navItem">
        <a
          href="javascript:viod(0);"
          onClick={() => {
            navigate('/order_list')
          }}
        >
          历史订单查询
        </a>
      </div>
    </div>
  )
}

export default Navigator
